package Month07.day05;

public class array {
    public static void main(String[] args) {
        int[] ints = new int[]{11, 22, 33, 44, 55};
        System.out.print("[");
        arraylist(ints);
    }

    public static void arraylist(int[] ints) {
        for (int i = 0; i < ints.length; i++) {
            if (i < ints.length - 1) {
                System.out.print(ints[i] + ",");
            } else if (i == ints.length - 1) {
                System.out.println(ints[i] + "]");
            }
        }
    }
}
